package com.csu.system.mapper;/*
 *
 * Author: Tianyu
 * Date: 2022/9/29 15:20:53
 */

import com.csu.system.domain.FaultInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface FaultInfoMapper {

    /**
     * 查询所有槽的最新故障
     * @param slotCnt 电解槽的数量
     * @return
     */
    public List<FaultInfo> selectCurFaultInfo(int slotCnt);

    /**
     * 查询某一个槽的最新故障
     * @param slotId
     * @return
     */
    public FaultInfo selectOneFaultInfo(int slotId);



    public List<FaultInfo> selectAllSlotInfo(int slotCnt);

    public FaultInfo selectOneSlotInfo(int slotId);

    List<String> selectVolList(int slotId);
}
